//
//  Grid.h
//  Game of Life
//
//  Created by James Durkee on 5/12/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "Cell.h"

@interface Grid : NSObject {
	NSMutableArray *grid;
	
	int numberOfRows;
	int numberOfColumns;
	
	int generation;
}
- (void)clear;
- (int)generation;

- (id)initWithRows:(int)r Cols:(int)c;
- (Cell *)cellAtRow:(int)r Col:(int)c;
- (int)rows;
- (int)columns;
- (NSEnumerator *)columnEnumerator;
-(int)countCellNeighborsAtRow:(int)r Col:(int)c;
-(void)nextGeneration;

@end
